package com.ruoyi.livenuniappserver.api.subscribe.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.livenuniappserver.api.memberUser.mapper.MemberUserMapper;
import com.ruoyi.livenuniappserver.api.subscribe.domain.Course;
import com.ruoyi.livenuniappserver.api.subscribe.mapper.CourseMapper;
import com.ruoyi.livenuniappserver.api.subscribe.service.CourseService;
import com.ruoyi.server.api.memberUserManagement.domain.MemberUserManagement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName CourseSubscribeServiceImpl
 * @Description TODO
 * @Author Lenovo
 * @Date 2024/7/2 10:05
 **/
@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;
    @Override
    public List<Course> selectCourseSubscribeList(Integer id) {
        List<Course> list = courseMapper.selectCourseList(id);
        return list;
    }

    @Override
    public int saveRegistrationRecord(String registrationCourseName, Integer courseId,Integer userId) {
        return courseMapper.saveRegistrationRecor(registrationCourseName,courseId,userId);
    }
}
